package m.server.web.res;

import java.io.File;

public class ResponseFile {
    private final File file;
    private final ContentType type;
    private final ContentDisposition disposition;

    public ResponseFile(File file){
        this(file,ContentType.FILE,ContentDisposition.inline());
    }
    public ResponseFile(File file,ContentDisposition disposition){
        this(file,ContentType.FILE,disposition);
    }
    public ResponseFile(File file,ContentType type){
        this(file,type,ContentDisposition.inline());
    }
    public ResponseFile(File file,ContentType type, ContentDisposition disposition){
        this.file=file;
        this.type=type;
        this.disposition=disposition;
    }

    public File getFile() {
        return file;
    }

    public ContentType getType() {
        return type;
    }

    public ContentDisposition getDisposition() {
        return disposition;
    }
}
